package cc.kigh.common.core.domain;

import lombok.Data;

/**
 * 包装数据 如果是url可以用于私有文件存储的加签
 * @author gylang
 * data 2022/2/25
 */
@Data
public class MayBeUrl {

    private String value;

    public MayBeUrl(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return value;
    }

    public static boolean isEmpty(MayBeUrl mayBeUrl) {
        return null == mayBeUrl || null == mayBeUrl.value || mayBeUrl.value.isEmpty();
    }
}
